//
//  MOBXIBView.m
//  Demo
//
//  Created by LeeJay on 2017/11/20.
//  Copyright © 2017年 Mob. All rights reserved.
//

#import "MOBXIBView.h"

@implementation MOBXIBView

- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super initWithCoder:coder];
    if (self)
    {
        UIView *view = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:self options:nil].firstObject;
        view.frame = self.bounds;
        [self addSubview:view];
    }
    return self;
}

@end
